package com.d6game.web.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.d6game.web.dao.UserDao;
import com.d6game.web.entity.User;

@Service
@Transactional
public class UserService {
	@Autowired
	UserDao userDao;
	
	public void saveUser(User user){
		userDao.save(user);
	}
	
	public User findUser(String username){
		return userDao.findUser(username);
	}
	public User findUserByEmail(String email){
		return userDao.findUserByEmail(email);
	}
	public User findUserByOuterid(String outerid){
		return userDao.findUserByOuterid(outerid);
	}
}
